﻿
namespace Aeon.Emulator.Instructions.FPU
{
    internal static class Fisub
    {
        [Opcode("DE/4 m16", OperandSize = 16 | 32, AddressSize = 16 | 32)]
        public static void SubtractInt16(VirtualMachine vm, short value)
        {
            vm.Processor.FPU.ST0 -= value;
        }

        [Opcode("DA/4 m32", OperandSize = 16 | 32, AddressSize = 16 | 32)]
        public static void SubtractInt32(VirtualMachine vm, int value)
        {
            vm.Processor.FPU.ST0 -= value;
        }
    }
}
